<?php
require_once("main.php");

$host = "localhost";
$user = "achatell";
$bdd = "achatell";
$passwd  = "**123456";

mysql_connect($host, $user,$passwd) or die("server connexion error");
mysql_select_db($bdd) or die("database connexion error");

$insert_query = "INSERT INTO ExtensionReviewMessage (text) VALUES('" . getMessage() . "');";
$db_error = !mysql_query($insert_query);
if($db_error){
	$result['data'] = "";
	$result['error'] = "Database error";
} else {
	$result['data'] = "";
}
echo json_encode($result);
mysql_close();
?>